package image;

import javafx.scene.Node;
import javafx.scene.control.TextField;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;

/**
 * 
 * @author Etienne Bruines
 * @author Bas Dobbelsteen
 */
public class Texting extends Layer
{

	private javafx.scene.control.TextField textfield;

	public Texting(String t, Paint fore, Paint back, double x, double y, double width, double height)
	{

		super(t);
		textfield = new TextField("Text");
		textfield.setMaxSize(140, 20);
		textfield.setLayoutX(x);
		textfield.setLayoutY(y);

		super.setBinding();
	}
	@Override public Node getContent()
	{
		return textfield;
	}

	@Override public int getWidth()
	{
		return (int) textfield.getWidth();
	}

	@Override public int getHeight()
	{
		return (int) textfield.getHeight();
	}

	@Override public int getX()
	{
		return (int) textfield.getLayoutX();
	}

	@Override public int getY()
	{
		return (int) textfield.getLayoutY();
	}
	@Override public void setBorder(Color c)
	{
		 // TODO
	}
	@Override public void setBackground(Color c)
	{
		// TODO
	}
	@Override public void setStroke(double width)
	{
		// ignore
	}

}
